package com.tmeone.erpone.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tmeone.erpone.entity.WareAndProduct;
import com.tmeone.erpone.mapper.WareAndProductMapper;
import com.tmeone.erpone.service.WareAndProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WareAndProductServiceImpl extends ServiceImpl<WareAndProductMapper, WareAndProduct> implements WareAndProductService {
    @Autowired
    private WareAndProductMapper wareAndProductMapper;
    @Override
    public IPage<WareAndProduct> wareAndProductPage(IPage<WareAndProduct> page,String wareNo,String productName) {
        return wareAndProductMapper.wareAndProductPage(page,wareNo,productName);
    }

    @Override
    public void updateWarnNum(WareAndProduct wareAndProduct) {
        //更新预警值
       wareAndProductMapper.updateWarnNum(wareAndProduct);
    }
}
